package ym.exception;

import lombok.Data;

import java.io.Serializable;

/**
 * 自定义异常类
 */
@Data
public class MyException extends RuntimeException implements Serializable {
    private Integer code;
    private String message;

    public MyException() {

    }

    public MyException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
